<?PHP exit('请支持正版 - 站拽设计 http://addon.discuz.com/?@57900.developer');?>

<!--{eval $encodeusername = rawurlencode($space[username]);}-->

<!--menu-->
<div class="zhanzhuai-s-menu p-rfixed cl">
     <ul>
		<li{if $do=='thread'} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=thread&view=me&from=space"><i class="thread-icon"></i>{lang topic}<span></span></a></li>
		<!--{if helper_access::check_module('blog')}-->
		<li{if $do=='blog'} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=blog&view=me&from=space"><i class="blog-icon"></i>{lang blog}<span></span></a></li>
		<!--{/if}-->
		<!--{if helper_access::check_module('album')}-->
		<li{if $do=='album'} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=album&view=me&from=space"><i class="album-icon"></i>{lang album}<span></span></a></li>
		<!--{/if}-->
		<!--{if helper_access::check_module('doing')}-->
		<li{if $do=='doing'} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=doing&view=me&from=space"><i class="doing-icon"></i>{lang doing}<span></span></a></li>
		<!--{/if}-->
		<!--{if helper_access::check_module('home')}-->
		<li{if $do=='home'} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=home&view=me&from=space"><i class="home-icon"></i>{lang feed}<span></span></a></li>
		<!--{/if}-->
		<!--{if helper_access::check_module('share')}-->
		<li{if $do=='share'} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=share&view=me&from=space"><i class="share-icon"></i>{lang share}<span></span></a></li>
		<!--{/if}-->
		<!--{if helper_access::check_module('follow')}-->
		<li{if CURMODULE == 'follow'} class="a"{/if}><a href="home.php?mod=follow&uid=$space[uid]&do=view&from=space"><i class="follow-icon"></i>{lang follow}<span></span></a></li>
		<!--{/if}-->
		<!--{if helper_access::check_module('wall')}-->
		<li{if $do==wall} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=wall&from=space"><i class="wall-icon"></i>留言<span></span></a></li>
		<!--{/if}-->
		<li{if $do==profile} class="a"{/if}><a href="home.php?mod=space&uid=$space[uid]&do=profile&from=space"><i class="profile-icon"></i>详情<span></span></a></li>          
     </ul>
</div>

              <!--{eval $home_gzs = DB::fetch_all("select * from ".DB::table('home_follow')." where uid = $uid order by followuid desc limit 0,10 "); $home_fans = DB::fetch_all("select * from ".DB::table('home_follow')." where followuid = $uid order by uid desc limit 0,10 ");}-->
				<!--{if $home_gzs}-->
				<!--{if $_GET[do]!='following' && $_GET[do]!='follower'}-->
                  <div class="zhanzhuai-gz-box cl">
                       <h3>他的关注</h3>
					   <!--{loop $home_gzs $value_gzs}-->
                       <div class="sideList">
                            <a href="home.php?mod=space&uid=$value_gzs[followuid]" title="$value_gzs[fusername]" target="_blank">
							    <img src="{echo avatar($value_gzs[followuid],'middle',1);}" />
							</a>
                            <a href="home.php?mod=space&uid=$value_gzs[followuid]" title="$value_gzs[fusername]" class="name" target="_blank">$value_gzs[fusername]</a>
                            <!--{eval $follow = 0;}-->
						    <!--{eval $follow = C::t('home_follow')->fetch_all_by_uid_followuid($_G['uid'], $value_gzs[followuid]);}-->
						    <!--{if !$follow}-->
							    <a id="followmod" onclick="showWindow(this.id, this.href, 'get', 0);" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$value_gzs[followuid]" class="butbase">{lang follow_add}TA</a>
						    <!--{else}-->
							    <a id="followmod" onclick="showWindow(this.id, this.href, 'get', 0);" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$value_gzs[followuid]" class="butbase">{lang follow_del}</a>
						    <!--{/if}-->
                       </div>
					   <!--{/loop}-->
                  </div>
				<!--{/if}-->
				<!--{else}-->
				   <div class="zhanzhuai-gz-box cl">
                        <h3>他的关注</h3>					  
                        <div class="no-sideList">
                           暂无数据
                        </div>
				   </div>
				<!--{/if}-->



<!--{eval $home_fans = DB::fetch_all("select * from ".DB::table('home_follow')." where followuid = $uid order by uid desc limit 0,10 ");}-->



				<!--{if $home_fans}-->
				<!--{if $_GET[do]!='following' && $_GET[do]!='follower'}-->
                  <div class="zhanzhuai-gz-box home-fixd cl">
                       <h3>他的粉丝</h3>
					   <!--{loop $home_fans $value_fans}-->
                       <div class="sideList">
                            <a href="home.php?mod=space&uid=$value_fans[followuid]" title="$value_fans[fusername]" target="_blank">
							    <img src="{echo avatar($value_fans[uid],'middle',1);}" />
							</a>
                            <a href="home.php?mod=space&uid=$value_fans[followuid]" title="$value_fans[fusername]" class="name" target="_blank">$value_fans[username]</a>
                            <!--{eval $follow = 0;}-->
						    <!--{eval $follow = C::t('home_follow')->fetch_all_by_uid_followuid($_G['uid'], $value_fans[uid]);}-->
						    <!--{if !$follow}-->
							    <a id="followmod" onclick="showWindow(this.id, this.href, 'get', 0);" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$value_fans[followuid]" class="butbase">{lang follow_add}TA</a>
						    <!--{else}-->
							    <a id="followmod" onclick="showWindow(this.id, this.href, 'get', 0);" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$value_fans[followuid]" class="butbase">{lang follow_del}</a>
						    <!--{/if}-->
                       </div>
					   <!--{/loop}-->
                  </div>
				<!--{/if}-->
				<!--{else}-->
				   <div class="zhanzhuai-gz-box home-fixd cl">
                        <h3>他的粉丝</h3>					  
                        <div class="no-sideList">
                           暂无数据
                        </div>
				   </div>
				<!--{/if}-->
				

 <!--menu end-->

<script type="text/javascript">
function succeedhandle_followmod(url, msg, values) {
	var fObj = $('followmod');
	if(values['type'] == 'add') {
		fObj.innerHTML = '{lang follow_del}';
		fObj.href = 'home.php?mod=spacecp&ac=follow&op=del&fuid='+values['fuid'];
	} else if(values['type'] == 'del') {
		fObj.innerHTML = '{lang follow_add}TA';
		fObj.href = 'home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid='+values['fuid'];
	}
}
</script>